
CLASSDIR = /kyo/java/libs
RUNPATH = /dev/shm/

LIBS = ItemRun.class Item.class Menu.class CommonMenu.class
LIBS += VtMenu.class

VTTARGET = VtMenuTest

TARGET = MenuTest

all:$(LIBS) $(TARGET)
	java -cp $(CLASSDIR):$(RUNPATH) $(TARGET)

vt:$(LIBS) $(VTTARGET)
	java -cp $(CLASSDIR):$(RUNPATH) $(VTTARGET)

$(TARGET):
	javac -d $(RUNPATH) -cp $(CLASSDIR):$(RUNPATH) $@.java

$(VTTARGET):
	javac -d $(RUNPATH) -cp $(CLASSDIR):$(RUNPATH) $@.java

%.class:%.java
	javac -d $(CLASSDIR) -cp $(CLASSDIR):$(RUNPATH) $^


